package cn.rht.study.service;

import java.text.ParseException;
import java.util.List;

import cn.rht.study.entity.User;
import cn.rht.study.service.ex.EmptyListException;
import cn.rht.study.service.ex.OtherException;
import cn.rht.study.service.ex.PasswordNotMatchException;
import cn.rht.study.service.ex.UserNameIExitsException;
import cn.rht.study.service.ex.UsernameNotFoundException;

public interface IUserService {
	/**
	 * 新增用户
	 * @param user
	 * @throws UserNameIExitsException
	 * @throws OtherException
	 */
	public void createUser(User user)throws UserNameIExitsException,OtherException;


	public void createPhone(User user)throws UserNameIExitsException,OtherException;


	public User Login(String username,String pwd)throws UsernameNotFoundException,PasswordNotMatchException;
	public List<User> getUserList()throws UsernameNotFoundException;
	public void clean(Integer id)throws UsernameNotFoundException,OtherException;
	
	public Integer createUsers(List<User> list)throws EmptyListException;
	
	public List<User> queryUser(String username);
	
	public void uploadImg(String avatar,Integer id);
	
	public User findUserById(Integer id);
	
	public void changeInfo(User user,String birthday) throws OtherException;
}
